package com.im.service.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.im.service.domain.entity.ImChat;
import com.im.service.domain.vo.ChatVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 聊天列表 Mapper 接口
 * </p>
 *
 * @author 刘志强
 * @since 2024-07-04
 */
@Mapper
public interface ImChatMapper extends BaseMapper<ImChat> {

    /**
     * 获取我的会话
     *
     * @param userId
     * @return
     */
    List<ChatVO> myChat(@Param("userId") Long userId);
}
